﻿<UserControl x:Class="Common.Controls.TextboxValidated"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:tb="clr-namespace:Microsoft.Windows.Controls;assembly=Microsoft.Windows.Controls.WatermarkedTextBox"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Loaded="UserControl_Loaded" >
    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition x:Name="colImage" Width="0"/>
        </Grid.ColumnDefinitions>
        <tb:WatermarkedTextBox TextChanged="tbTextBox_TextChanged" 
                               Grid.Column="0" x:Name="tbTextBox" LostFocus="TextBox_LostFocus"/>        
        <Image x:Name="imgError" Source="Images/ErrorCircle-16x16.png" Grid.Column="1"/>
    </Grid>
</UserControl>
